package com.teamone.etl.accountant.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;

/**
 * 个人账户信息(PersonalInformation)实体类
 *
 * @author makejava
 * @since 2021-01-20 15:22:26
 */
public class PersonalInformation implements Serializable {
    /**
    * 编号
    */
    private Integer id;
    /**
    * 0代表禁用 1代表启用
    */
    private Integer warningStatus;
    /**
    * 预警电话
    */
    private String warningPhone;
    /**
    * 创建时间
    */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    /**
    * 修改时间
    */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
    /**
    * 余额
    */
    private BigDecimal balance = new BigDecimal(0);
    /**
    * 预警阈值
    */
    private BigDecimal warningThreshold = new BigDecimal(0);
    /**
     * 照片
     */
    private String image;

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getWarningStatus() {
        return warningStatus;
    }

    public void setWarningStatus(Integer warningStatus) {
        this.warningStatus = warningStatus;
    }

    public String getWarningPhone() {
        return warningPhone;
    }

    public void setWarningPhone(String warningPhone) {
        this.warningPhone = warningPhone;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    public BigDecimal getWarningThreshold() {
        return warningThreshold;
    }

    public void setWarningThreshold(BigDecimal warningThreshold) {
        this.warningThreshold = warningThreshold;
    }

    @Override
    public String toString() {
        return "PersonalInformation{" +
                "id=" + id +
                ", warningStatus=" + warningStatus +
                ", warningPhone='" + warningPhone + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", balance=" + balance +
                ", warningThreshold=" + warningThreshold +
                ", image='" + image + '\'' +
                '}';
    }
}